import { createSSRApp } from 'vue'
import './style/index.scss'
import store from './store'
import App from './App.vue'
import config from './config'
import './permission'
// @ts-ignore
import uviewPlus from 'uview-plus'
export function createApp() {
	const app = createSSRApp(App)
	app.config.globalProperties.$Prefix = config.prefix
	app.provide('$Prefix', config.prefix)
	app.use(store)
	app.use(uviewPlus)
	app.mixin({
		onShareAppMessage(res) {
			return {
				desc: "选星计划"
			}
		},
		onShareTimeline() {
			return {

			}
		}
	})
	return {
		app,
	}
}